#include <iostream>
#include <assert.h>
#include <vector>
#include "mem.h"
#include "common.h"

int main() {
  VirtualR::SkipList *mem = new VirtualR::SkipList();
  std::string temp = "zys_test";
  for (int i = 0; i < 100; i++) {
    mem->put(temp + std::to_string(i), "hhh" + std::to_string(i));
  }

  std::string value = "";
  assert(mem->get(temp + "6", value));
  assert(value == "hhh6");
  assert(mem->del(temp + std::to_string(96)));
  assert(mem->get(temp + "96", value));
  assert(value == "");
}